home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / CoreP.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  9KB  |  172 lines

  1. /*
  2. * $Xorg: CoreP.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $
  3. * $oHeader: CoreP.h,v 1.2 88/08/18 15:54:37 asente Exp $
  4. */
  5.  
  6. /***********************************************************
  7.  
  8. Copyright 1987, 1988, 1998  The Open Group
  9.  
  10. Permission to use, copy, modify, distribute, and sell this software and its
  11. documentation for any purpose is hereby granted without fee, provided that
  12. the above copyright notice appear in all copies and that both that
  13. copyright notice and this permission notice appear in supporting
  14. documentation.
  15.  
  16. The above copyright notice and this permission notice shall be included in
  17. all copies or substantial portions of the Software.
  18.  
  19. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  22. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  23. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  24. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25.  
  26. Except as contained in this notice, the name of The Open Group shall not be
  27. used in advertising or otherwise to promote the sale, use or other dealings
  28. in this Software without prior written authorization from The Open Group.
  29.  
  30.  
  31. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  32.  
  33.                         All Rights Reserved
  34.  
  35. Permission to use, copy, modify, and distribute this software and its 
  36. documentation for any purpose and without fee is hereby granted, 
  37. provided that the above copyright notice appear in all copies and that
  38. both that copyright notice and this permission notice appear in 
  39. supporting documentation, and that the name of Digital not be
  40. used in advertising or publicity pertaining to distribution of the
  41. software without specific, written prior permission.  
  42.  
  43. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  44. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  45. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  46. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  47. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  48. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  49. SOFTWARE.
  50.  
  51. ******************************************************************/
  52.  
  53. #ifndef XtCoreP_h
  54. #define XtCoreP_h
  55.  
  56. #include <X11/Core.h>
  57.  
  58. externalref int _XtInheritTranslations;
  59.  
  60. #define XtInheritTranslations  ((String) &_XtInheritTranslations)
  61. #define XtInheritRealize ((XtRealizeProc) _XtInherit)
  62. #define XtInheritResize ((XtWidgetProc) _XtInherit)
  63. #define XtInheritExpose ((XtExposeProc) _XtInherit)
  64. #define XtInheritSetValuesAlmost ((XtAlmostProc) _XtInherit)
  65. #define XtInheritAcceptFocus ((XtAcceptFocusProc) _XtInherit)
  66. #define XtInheritQueryGeometry ((XtGeometryHandler) _XtInherit)
  67. #define XtInheritDisplayAccelerator ((XtStringProc) _XtInherit)
  68.  
  69. /***************************************************************
  70.  * Widget Core Data Structures
  71.  *
  72.  *
  73.  **************************************************************/
  74.  
  75. typedef struct _CorePart {
  76.     Widget        self;        /* pointer to widget itself         */
  77.     WidgetClass        widget_class;    /* pointer to Widget's ClassRec         */
  78.     Widget        parent;        /* parent widget               */
  79.     XrmName         xrm_name;        /* widget resource name quarkified   */
  80.     Boolean         being_destroyed;    /* marked for destroy             */
  81.     XtCallbackList  destroy_callbacks;    /* who to call when widget destroyed */
  82.     XtPointer       constraints;        /* constraint record                 */
  83.     Position        x, y;        /* window position             */
  84.     Dimension       width, height;    /* window dimensions             */
  85.     Dimension       border_width;    /* window border width             */
  86.     Boolean         managed;            /* is widget geometry managed?       */
  87.     Boolean        sensitive;        /* is widget sensitive to user events*/
  88.     Boolean         ancestor_sensitive;    /* are all ancestors sensitive?      */
  89.     XtEventTable    event_table;    /* private to event dispatcher       */
  90.     XtTMRec        tm;                 /* translation management            */
  91.     XtTranslations  accelerators;       /* accelerator translations          */
  92.     Pixel        border_pixel;    /* window border pixel             */
  93.     Pixmap          border_pixmap;    /* window border pixmap or NULL      */
  94.     WidgetList      popup_list;         /* list of popups                    */
  95.     Cardinal        num_popups;         /* how many popups                   */
  96.     String          name;        /* widget resource name             */
  97.     Screen        *screen;        /* window's screen             */
  98.     Colormap        colormap;           /* colormap                          */
  99.     Window        window;        /* window ID                 */
  100.     Cardinal        depth;        /* number of planes in window        */
  101.     Pixel        background_pixel;    /* window background pixel         */
  102.     Pixmap          background_pixmap;    /* window background pixmap or NULL  */
  103.     Boolean         visible;        /* is window mapped and not occluded?*/
  104.     Boolean        mapped_when_managed;/* map window if it's managed?       */
  105. } CorePart;
  106.  
  107. typedef struct _WidgetRec {
  108.     CorePart    core;
  109.  } WidgetRec, CoreRec;
  110.  
  111.  
  112.  
  113. /******************************************************************
  114.  *
  115.  * Core Class Structure. Widgets, regardless of their class, will have
  116.  * these fields.  All widgets of a given class will have the same values
  117.  * for these fields.  Widgets of a given class may also have additional
  118.  * common fields.  These additional fields are included in incremental
  119.  * class structures, such as CommandClass.
  120.  *
  121.  * The fields that are specific to this subclass, as opposed to fields that
  122.  * are part of the superclass, are called "subclass fields" below.  Many
  123.  * procedures are responsible only for the subclass fields, and not for
  124.  * any superclass fields.
  125.  *
  126.  ********************************************************************/
  127.  
  128. typedef struct _CoreClassPart {
  129.     WidgetClass     superclass;        /* pointer to superclass ClassRec   */
  130.     String          class_name;        /* widget resource class name       */
  131.     Cardinal        widget_size;    /* size in bytes of widget record   */
  132.     XtProc        class_initialize;   /* class initialization proc        */
  133.     XtWidgetClassProc class_part_initialize; /* dynamic initialization        */
  134.     XtEnum          class_inited;       /* has class been initialized?      */
  135.     XtInitProc      initialize;        /* initialize subclass fields       */
  136.     XtArgsProc      initialize_hook;    /* notify that initialize called    */
  137.     XtRealizeProc   realize;        /* XCreateWindow for widget        */
  138.     XtActionList    actions;        /* widget semantics name to proc map */
  139.     Cardinal        num_actions;    /* number of entries in actions     */
  140.     XtResourceList  resources;        /* resources for subclass fields    */
  141.     Cardinal        num_resources;      /* number of entries in resources   */
  142.     XrmClass        xrm_class;        /* resource class quarkified        */
  143.     Boolean         compress_motion;    /* compress MotionNotify for widget */
  144.     XtEnum          compress_exposure;  /* compress Expose events for widget*/
  145.     Boolean         compress_enterleave;/* compress enter and leave events  */
  146.     Boolean         visible_interest;   /* select for VisibilityNotify      */
  147.     XtWidgetProc    destroy;        /* free data for subclass pointers  */
  148.     XtWidgetProc    resize;        /* geom manager changed widget size */
  149.     XtExposeProc    expose;        /* rediplay window            */
  150.     XtSetValuesFunc set_values;        /* set subclass resource values     */
  151.     XtArgsFunc      set_values_hook;    /* notify that set_values called    */
  152.     XtAlmostProc    set_values_almost;  /* set_values got "Almost" geo reply */
  153.     XtArgsProc      get_values_hook;    /* notify that get_values called    */
  154.     XtAcceptFocusProc accept_focus;     /* assign input focus to widget     */
  155.     XtVersionType   version;            /* version of intrinsics used        */
  156.     XtPointer       callback_private;   /* list of callback offsets       */
  157.     String          tm_table;           /* state machine                    */
  158.     XtGeometryHandler query_geometry;    /* return preferred geometry        */
  159.     XtStringProc    display_accelerator;/* display your accelerator        */
  160.     XtPointer        extension;        /* pointer to extension record      */
  161.  } CoreClassPart;
  162.  
  163. typedef struct _WidgetClassRec {
  164.     CoreClassPart core_class;
  165. } WidgetClassRec, CoreClassRec;
  166.  
  167. externalref WidgetClassRec widgetClassRec;
  168. #define coreClassRec widgetClassRec
  169.  
  170. #endif /* _XtCoreP_h */
  171. /* DON'T ADD STUFF AFTER THIS #endif */
  172.